package com.vhall.component.entity.inav.vo;


import com.vhall.component.framework.common.annotation.ParamName;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import java.io.Serializable;

/**
 * @author lsl
 * @since 2021/6/4
 */
@Data
public class SetDeviceStatusReqVO implements Serializable {

    @NotBlank(message = "room_id不能为空")
    @ParamName("room_id")
    private String roomId;

    @NotBlank(message = "设备类型不能为空")
    @Pattern(regexp = "(1)|(2)", message = "状态 只能是1,2")
    private String device;

    @NotBlank(message = "状态不能为空")
    @Pattern(regexp = "(0)|(1)", message = "状态 只能是0,1")
    private String status;

    @ParamName("account_id")
    private Integer accountId;

    @NotNull(message = "receive_account_id不能为空")
    @ParamName("receive_account_id")
    private Integer receiveAccountId;

    @ParamName("vss_token")
    private String vssToken;

}
